package hrms.dao;

import hrms.entity.Post;
import javafx.geometry.Pos;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PostMapper {
    List<Post> selectByDepartmentId(Integer departmentId);
    Post selectDepartmentNmaeById(Integer id);
    List<Post> selectAllPost();
    List<Post> selectPostByName(@Param("pname")String pname);
    Integer addPost(Post post);
    Integer updatePost(Post post);
    Integer deletePostById(@Param("id") Integer id);
    Post findById(Integer id);
    int updateByPrimaryKey(Post record);
}
